package com.bwie.controller;

import com.bwie.service.CityService;
import com.bwie.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: day0617mounth
 * @ClassName CityController
 * @description:
 * @author: 段阳
 * @create: 2024-06-17 10:17
 **/
@RestController
@RequestMapping("city")
public class CityController {

    @Autowired
    private CityService cityService;

    /**
    * //TODO
    * @author 段阳
    * @date 2024/6/17 11:04
 * @param pid
 * @return com.bwie.util.R
    */
    @PostMapping("/findCityList")
    public R findCityList(@RequestParam(name = "pid") Integer pid){
        return cityService.findCityList(pid);
    }
}